package Bean;

import java.sql.ResultSet;
import java.sql.SQLException;

public class CategoryRowMapper {
	public Category mapper(ResultSet rs) throws SQLException {
		Category category=new Category();
		category.setPid(rs.getInt("pid"));
		category.setCategoryname(rs.getString("category_name"));
		return category;
	}
}
